﻿
@{
    ViewData["Title"] = "Index";
}

<h2>Index</h2>
@if (User.Identity.IsAuthenticated)
{
    <p>Welcome to my website,@User.Identity.Name</p>
}
else
{
    <p class="text-danger">抱歉您没有权限访问此页面！</p>
}
